Document Solutions for PDF
GrapeCity.Documents.Imaging.Windows Assembly / GrapeCity.Documents.Imaging.Windows Namespace / GcWicBitmap Class / Import Method / Import(Byte[],Int32,Int32,WicPixelFormat) Method
The source byte array with pixel buffer.
The width of the image, in pixels.
The height of the image, in pixels.
The pixel format of the image.

In This Topic
    Import(Byte[],Int32,Int32,WicPixelFormat) Method
    In This Topic
    Loads the image from a byte array containing the pixels buffer.
    Syntax
    'Declaration
     
    Public Overloads Sub Import( _
       ByVal bytes() As System.Byte, _
       ByVal width As System.Integer, _
       ByVal height As System.Integer, _
       ByVal pixelFormat As WicPixelFormat _
    ) 
    public void Import( 
       System.byte[] bytes,
       System.int width,
       System.int height,
       WicPixelFormat pixelFormat
    )

    Parameters

    bytes
    The source byte array with pixel buffer.
    width
    The width of the image, in pixels.
    height
    The height of the image, in pixels.
    pixelFormat
    The pixel format of the image.
    See Also